package com.wang.service.impl;

import com.wang.mapper.UsersMapper;
import com.wang.pojo.Users;
import com.wang.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by wang on 2018/5/1.
 */
@Service
@Transactional
public class UserServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;
    @Override
    public void addUsers(Users users) {
        this.usersMapper.insertUser(users);
    }
}
